package edu.ntu.helper;

import java.util.ArrayList;

import android.util.Log;

/** Contains getter and setter method for varialbles */
public class StoryList {

	/** Variables */
	private ArrayList<Integer> index = new ArrayList<Integer>();
	private ArrayList<String> link = new ArrayList<String>();
	private ArrayList<String> submit_time = new ArrayList<String>();
	private ArrayList<String> tags = new ArrayList<String>();
	private ArrayList<String> title = new ArrayList<String>();
	private ArrayList<String> details = new ArrayList<String>();

	/**
	 * In Setter method default it will return arraylist change that to add
	 */

	public ArrayList<Integer> getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index.add(index);
	}

	public ArrayList<String> getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link.add(link);
	}
	
	public ArrayList<String> getSubmit_time() {
		return submit_time;
	}

	public void setSubmit_time(String submit_time) {
		this.submit_time.add(submit_time);
	}
	
	public ArrayList<String> getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags.add(tags);
	}

	public ArrayList<String> getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title.add(title);
	}

	public ArrayList<String> getDetails() {
		//Log.v("in array", desc.toString());
		return details;
	}

	public void setDetails(String details) {
		this.details.add(details);
	}
	
	public int getSize(){
		return index.size();
	}

}